<%@ Page Language="C#" %>
<script runat="server">
    protected void Page_Load()
    {
        this.mainframe.Attributes.Add( 
            "src", 
            Page.ResolveUrl("~/admin/Private/CMS/LinkAssetBrowser/default.aspx"));
    }
</script>

<html>
<head runat="server">
    
    <title>Link Browser</title>

    <style>
    body
    {
        margin: 0 0 0 0;
        padding: 0 0 0 0;
        border: 0;
    }
    </style>    
    
    <script language="javascript">
    // The link / asset will be passed in as a url
    function SetUrl( link )
    {
       link = link.substr( 2 );
       if( window.opener != null )
        {
            if( window.opener.SetUrl != null )
                window.opener.SetUrl('<%=Page.ResolveUrl("~/")%>' + link);
        }

        window.close();
    }
    </script>
    
</head>
<body>
    <iframe runat="server" id="mainframe" width="100%" height="100%"/>
</body>
</html>
